// m_strUser.cpp: implementation of the CUser class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "User.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CUser::CUser()
{}

CUser::CUser(ULONG ulIndex, const CString &strUserInfo)
: CPageItem(ulIndex)
{
	AnalyzeUserInfo( strUserInfo );
}

CUser::~CUser()
{

}

void CUser::AnalyzeInfo(const CString &strUserInfo)
{
	AnalyzeUserInfo( strUserInfo );
}

void CUser::AnalyzeUserInfo(const CString &strUserInfo)
{
	int iFindPos= 0;

	m_strUserName = GetNextInfoItem( strUserInfo, iFindPos );
	
	m_strGroup = GetNextInfoItem( strUserInfo, iFindPos );

	m_strDesc = GetNextInfoItem( strUserInfo, iFindPos );

	m_strSn = GetNextInfoItem( strUserInfo, iFindPos );

	m_strSnBackup = GetNextInfoItem( strUserInfo, iFindPos );

	m_strRights = GetNextInfoItem( strUserInfo, iFindPos );
	
	m_strSpecialRoles = GetNextInfoItem( strUserInfo, iFindPos );
}
